<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>

<script type="text/javascript">

{
	let [foo] = [];
	console.error("foo = " + foo);
}

{
	let [bar, foo] = [1];
	console.error("foo = " + foo);
}
{
	let [x, y] = [1, 2, 3];
	console.error("x = " + x);
	console.error("y = " + y);
}
{
	let [a, [b], c] = [1, [2, 3], 4];
	console.error("a = " + a);
	console.error("b = " + b);
	console.error("c = " + c);
}
	
</script>

</body>
</html>